package com.journaldev.spring.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.journaldev.spring.dao.PrescriptionMedicineDAO;
import com.journaldev.spring.model.Medicine;
import com.journaldev.spring.model.Prescription;

@Service
public class PrescriptionMedicineServiceImpl implements PrescriptionMedicineService {
	
	private PrescriptionMedicineDAO prescriptionMedicineDAO;

	public void setPrescriptionMedicineDAO(PrescriptionMedicineDAO dao) {
		this.prescriptionMedicineDAO = dao;
	}

	@Override
	@Transactional
	public void removePrescriptionMedicine(Prescription oresc, Medicine med) {
		// TODO Auto-generated method stub
		this.prescriptionMedicineDAO.removePrescriptionMedicine(oresc, med);
	}

}
